import {
	createI18n
} from 'vue-i18n'
import zh from '../locales/zh.json'
import en from '../locales/en.json'

const i18n = createI18n({
	legacy: false,
	locale: 'zh',
	fallbackLocale: 'zh',
	globalInjection:true,
	messages: {
		'zh': zh,
		'en': en
	}
})

export default i18n